import request from '@/router/axios';

/**
 * 每日统计
 * @param params
 * @param current
 * @param size
 * @returns {AxiosPromise}
 */
export const queryDailyStatistics = (params, current, size) => request({
  url: '/api/blade-statistic/statistics/queryDailyStatistics',
  method: 'get',
  params: {
    ...params,
    current,
    size
  }
});

/**
 * 每日统计报表
 * @param params
 * @param current
 * @param size
 * @returns {AxiosPromise}
 */
export const queryDailyStatisticsReport = (params) => request({
  url: '/api/blade-statistic/statistics/queryDailyStatisticsReport',
  method: 'get',
  responseType:'blob',
  params: {
    ...params
  }
});


export const queryGameStatistics = (params, current, size) => request({
  url: '/api/blade-statistic/statistics/queryGameStatistics',
  method: 'get',
  params: {
    ...params,
    current,
    size
  }
});

export const queryTeamStatistics = (params, current, size) => request({
  url: '/api/blade-statistic/statistics/queryTeamStatistics',
  method: 'get',
  params: {
    ...params,
    current,
    size
  }
});


export const queryDailyStatisticsQr = (params, current, size) => request({
  url: '/api/blade-statistic/statistics/queryDailyStatisticsQr',
  method: 'get',
  params: {
    ...params,
    current,
    size
  }
});

export const queryDailyStatisticsQrByDept = (params, current, size) => request({
  url: '/api/blade-statistic/statistics/queryDailyStatisticsQrByDept',
  method: 'get',
  params: {
    ...params,
    current,
    size
  }
});

